package com.example.springbootdemo.infra.mapper;

import com.example.springbootdemo.api.DTO.AddStudentDTO;
import com.example.springbootdemo.domin.VO.getScoreDetailVO;
import com.example.springbootdemo.domin.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {
    Student getById(Integer sno);

    void updateById(Student student);

    void deleteById(Integer sno);

    void insertStudent(Student student);

    void insertStudents(List<AddStudentDTO>list);

    List<Student>getAll();

    List<getScoreDetailVO>getScoreDetail(String sname);
}
